package com.small.commom;

import java.util.List;
import java.util.Map;

public class Result
{
private List<Map<String,Object>> lstResult = null;
    
    public void setResult(List<Map<String,Object>> val)
    {
        this.lstResult = val;
    }
    
    public List<Map<String,Object>> getResult()
    {
        return lstResult;
    }
    
    public int Count()
    {
        if (lstResult != null)
        {
            return lstResult.size();
        }
        else
        {
            return 0;
        }
    }
    
    public Map<String,Object> Items(int i)
    {
        if (this.Count() > 0)
        {
            return lstResult.get(i);
        }
        else
        {
            return null;
        }
    }
    
    public Object Get(int i, String key)
    {
        if (this.Count() > 0)
        {
            return lstResult.get(i).get(key);
        }
        else
        {
            return null;
        }
    }
}
